package com.heima.test.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;


@Component
public class HelloJob {

    @XxlJob("helloJob")
    public ReturnT<String> handleJob(String param) {
        System.out.println("指定的参数："+param);
        System.out.println("helloJob："+ LocalDateTime.now());
        return ReturnT.SUCCESS;
    }
}

